import requset from '@/utils/request.js'

// 登录
export function login(data){
  return requset({
    url:'/api/login',
    method: 'post',
    data:data
  })
}

// 退出
export function logout(data){
  return requset({
    url:'/api/logout',
    method: 'post'
  })
}

//上传文件
export function uploadFile(data){
  return requset({
    url:'/api/common/uploadFile',
    method:'post',
    headers:{'content-type':'application/x-www-form-urlencoded'},
    data
  })
}